//
//  WKTitleView.m
//  WKDemo
//
//  Created by wangzhaohui-Mac on 14-8-4.
//  Copyright (c) 2014年 com.app. All rights reserved.
//

#import "WKTitleView.h"

@interface WKTitleView ()
@property (nonatomic,strong) NSMutableArray *buttons;

@end


@implementation WKTitleView

#pragma mark - 懒加载
- (NSMutableArray *)buttons
{
    if (_buttons == nil) {
        _buttons = [NSMutableArray array];
    }
    return _buttons;
}


- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
//        //精华按钮
//        UIButton *newestBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, WKTitleBtnW, WKTitleH)];
//        newestBtn.tag = ButtonTypeOne;
//        [newestBtn setImage:[UIImage imageNamed:@"nav-order-newest"] forState:UIControlStateNormal];
//        [newestBtn setImage:[UIImage imageNamed:@"nav-order-newest-click"] forState:UIControlStateSelected];
//        [newestBtn setBackgroundImage:[UIImage imageNamed:@"nav-order-bg"] forState:UIControlStateSelected];
//        //添加按钮到数组中
//        [self.buttons addObject:newestBtn];
//        
//        [titleView addSubview:newestBtn];
//        [newestBtn addTarget:self action:@selector(cilck:) forControlEvents:UIControlEventTouchDown];
//        self.selectedBtnOne = newestBtn;
//        
//        
//        //最新按钮
//        UIButton *newBtn = [[UIButton alloc] initWithFrame:CGRectMake(75, 0, WKTitleBtnW, WKTitleH)];
//        newBtn.tag = ButtonTypeTwo;
//        [newBtn setImage:[UIImage imageNamed:@"nav-order-new"] forState:UIControlStateNormal];
//        [newBtn setImage:[UIImage imageNamed:@"nav-order-new-click"] forState:UIControlStateSelected];
//        [newBtn setBackgroundImage:[UIImage imageNamed:@"nav-order-bg"] forState:UIControlStateSelected];
//        //添加按钮到数组中
//        [self.buttons addObject:newBtn];
//        
//        [self addSubview:newBtn];
//        [newBtn addTarget:self action:@selector(cilck:) forControlEvents:UIControlEventTouchDown];
//        self.selectedBtnTwo = newBtn;

    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];

}

@end
